package com.sdy.hospitalguard.biz.service;

import com.sdy.common.model.BizException;
import com.sdy.hospitalguard.biz.dto.MatchingPeopleDTO;
import com.sdy.hospitalguard.biz.model.MatchingPeople;
import com.sdy.mvc.service.BaseService;

import java.net.URISyntaxException;

/**
 * <p>
 * 人员匹配表 服务类
 * </p>
 *
 * @author zzq
 * @since 2020-05-15
 */
public interface MatchingPeopleService extends BaseService<MatchingPeople> {

    /**
     * 新增或修改匹配人员数据
     * @return
     * @throws BizException
     */
    boolean add(MatchingPeople matchingPeople) throws BizException;

    /**
     * 删除匹配人员数据
     * @return
     * @throws BizException
     */
    boolean delete(MatchingPeopleDTO matchingPeopleDTO) throws BizException;

    /**
     * 删除出门门禁设备人员数据，一般不用
     * @param matchingPeopleDTO
     * @return
     * @throws BizException
     */
    boolean deleteForType(MatchingPeopleDTO matchingPeopleDTO) throws BizException;

}
